<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<script>
	 $(document).ready(function() {
	 	$("button").button();
	 	$("#monitoringLaneTabs").tabs();
	 	$( "#isVisible" ).val("true");
	 	ajaxFindMonitoringLaneList();
	 });
</script>

<div title="维护监控点" id="monitoringPointSelectDialog" class="dialogtitle2">
	<div class="searchbox">
		<span class="fontRed">注:</span>带"<span class="fontRed">*</span>"为必填项
		<form id="frmMonitoringPoint" onSubmit="return false">
			<input type="hidden" id="id" name="id" value="<c:out value='${monitoringPoint.id }'/>">
			<input type="hidden" id="isVisible" value="">
			<table id="monitoringPointTable" cellspacing="0" cellpadding="0">
				<tr>
   					<td align="right" style="width:114px;">名称：<span class="fontRed">*</span></td>
   					<td><input type="text" id="monitorName" name="monitorname" value="<c:out value='${monitoringPoint.monitorname }'/>" style="width: 150px; "></td> 
   					<td align="right" style="width:114px;">编号：<span class="fontRed">*</span></td>
   					<td><input type="text" id="monitorNum" name="monitornum" value="<c:out value='${monitoringPoint.monitornum }'/>" style="width: 150px; "></td> 
   					<td align="right"  style="width: 114px;">所在路段：<span class="fontRed">*</span></td>
					<td style="width: 230px; ">
						<select name="sectionid" style="width: 158px; ">
							<option value="">---请选择---</option>
							<c:forEach items="${lstSection}" var="section">
							<option value="${section.id}" ${monitoringPoint.sectionid==section.id ? "selected":""} ><c:out value="${section.sectionname}" /></option>
							</c:forEach>
						</select>
					</td>					
  				</tr>
  				<tr>
   					<td align="right" style="width:114px;">设备编号：&nbsp;</td>
   					<td><input type="text" id="monitorNum" name="" value="<c:out value=''/>" style="width: 150px; "></td> 
   					<td align="right" style="width: 114px;">车道方向：&nbsp;</td>
					<td>
						<select name="directionid" style="width: 158px; ">
							<option value="">---请选择---</option>
							<c:forEach items="${lstTravelDirection}" var="travelDirection">
								<option value="${travelDirection.code }" ${travelDirection.code == monitoringPoint.directionid ? "selected" : ""}><c:out value="${travelDirection.name}"></c:out></option>
							</c:forEach>
						</select>
					</td>
					<td></td>
					<td></td>
					<!-- <td align="right" style="width:114px;">区域编号：</td>
   					<td><input type="text" id="" name="" style="width: 150px; "></td> -->
  				</tr>
  				<tr>
   					<!-- <td align="right" style="width:114px;">总队编号：</td>
   					<td><input type="text" id="" name="" style="width: 150px; "></td> 	 -->
   					<td align="right" style="width:114px;">经度：<span class="fontRed">*</span></td>
   					<td><input type="text" onkeyup="if(isNaN(value))execCommand('undo')" id="longitude" name="longitude" value="<c:out value='${monitoringPoint.longitude }'/>" style="width: 150px; "></td> 	
   					<td align="right" style="width:114px;">纬度：<span class="fontRed">*</span></td>
   					<td><input type="text" onkeyup="if(isNaN(value))execCommand('undo')" id="latidue" name="latidue" value="<c:out value='${monitoringPoint.latidue }'/>" style="width: 150px; "></td> 													
  					<td></td>
  					<td></td>
  				</tr>
           	</table>
 		</form>
  		<div class="buttonbox" align="right" style="padding-right:4px;"><button>保存</button></div>
  	</div>
  	<div id="monitoringLaneTabs">
		<ul>
			<li><a href="#monitoringLaneTab">监测车道</a></li>
		</ul>
		<div id="monitoringLaneTab">
			<c:if test="${!empty monitoringPoint.id}">
				<div id="listMonitoringLaneBox" style="width: 100%;"></div>
			</c:if>
		</div>
	</div>
	<div id="infoMonitoringPoint" class="fontRed"></div>
</div>			

				